{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\Owner\Dropbox\Side Projects\Coauthored\Religion_Friday_Prayer\Analysis\Replication\Lebanon_log.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res} 7 Mar 2022, 12:14:04

{com}. do "C:\Users\mhoffma5\AppData\Local\Temp\STD8d2c_000000.tmp"
{txt}
{com}. use "BJPS_Data_Lebanon_Survey.dta", clear 
{txt}(Written by R.              )

{com}. 
. *** TABLE A8
.  estimates clear
{res}{txt}
{com}. reg PolSum_01 i.Experience1##c.Weekly##i.Friday  

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}       342
{txt}{hline 13}{c +}{hline 34}   F(7, 334)       = {res}     5.78
{txt}       Model {c |} {res}   2.948465         7  .421209286   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res} 24.3446635       334  .072888214   {txt}R-squared       ={res}    0.1080
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.0893
{txt}       Total {c |} {res} 27.2931285       341    .0800385   {txt}Root MSE        =   {res} .26998

{txt}{hline 28}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}                  PolSum_01{col 29}{c |}      Coef.{col 41}   Std. Err.{col 53}      t{col 61}   P>|t|{col 69}     [95% Con{col 82}f. Interval]
{hline 28}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 14}1.Experience1 {c |}{col 29}{res}{space 2} .0516873{col 41}{space 2} .0427173{col 52}{space 1}    1.21{col 61}{space 3}0.227{col 69}{space 4}-.0323417{col 82}{space 3} .1357162
{txt}{space 21}Weekly {c |}{col 29}{res}{space 2} .1423576{col 41}{space 2} .0433712{col 52}{space 1}    3.28{col 61}{space 3}0.001{col 69}{space 4} .0570424{col 82}{space 3} .2276729
{txt}{space 27} {c |}
{space 7}Experience1#c.Weekly {c |}
{space 25}1  {c |}{col 29}{res}{space 2} .0074702{col 41}{space 2} .0616482{col 52}{space 1}    0.12{col 61}{space 3}0.904{col 69}{space 4}-.1137974{col 82}{space 3} .1287378
{txt}{space 27} {c |}
{space 21}Friday {c |}
{space 20}Friday  {c |}{col 29}{res}{space 2}-.1233766{col 41}{space 2} .0870218{col 52}{space 1}   -1.42{col 61}{space 3}0.157{col 69}{space 4}-.2945566{col 82}{space 3} .0478033
{txt}{space 27} {c |}
{space 9}Experience1#Friday {c |}
{space 18}1#Friday  {c |}{col 29}{res}{space 2}-.0466368{col 41}{space 2} .1435235{col 52}{space 1}   -0.32{col 61}{space 3}0.745{col 69}{space 4}-.3289608{col 82}{space 3} .2356872
{txt}{space 27} {c |}
{space 12}Friday#c.Weekly {c |}
{space 20}Friday  {c |}{col 29}{res}{space 2}-.0632331{col 41}{space 2} .1288641{col 52}{space 1}   -0.49{col 61}{space 3}0.624{col 69}{space 4}-.3167206{col 82}{space 3} .1902545
{txt}{space 27} {c |}
Experience1#Friday#c.Weekly {c |}
{space 18}1#Friday  {c |}{col 29}{res}{space 2} .2814607{col 41}{space 2} .1994604{col 52}{space 1}    1.41{col 61}{space 3}0.159{col 69}{space 4}-.1108962{col 82}{space 3} .6738177
{txt}{space 27} {c |}
{space 22}_cons {c |}{col 29}{res}{space 2} .2294372{col 41}{space 2} .0307669{col 52}{space 1}    7.46{col 61}{space 3}0.000{col 69}{space 4}  .168916{col 82}{space 3} .2899585
{txt}{hline 28}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. margins, dydx(Experience1) over(Weekly Friday) post
{res}
{txt}Average marginal effects{col 49}Number of obs{col 67}= {res}       342
{txt}{col 1}Model VCE{col 14}: {res}OLS

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Linear prediction, predict()}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col:dy/dx w.r.t.}:{space 1}{res:1.Experience1}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col:over}:{space 1}{res:Weekly Friday}{p_end}
{p2colreset}{...}

{res}{txt}{hline 35}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 36}{c |}{col 48} Delta-method
{col 36}{c |}      dy/dx{col 48}   Std. Err.{col 60}      t{col 68}   P>|t|{col 76}     [95% Con{col 89}f. Interval]
{hline 35}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}0.Experience1                     {col 36}{txt}{c |}  (base outcome)
{hline 35}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}1.Experience1                      {txt}{c |}
{space 21}Weekly#Friday {c |}
Does Not Attend Weekly#Not Friday  {c |}{col 36}{res}{space 2} .0516873{col 48}{space 2} .0427173{col 59}{space 1}    1.21{col 68}{space 3}0.227{col 76}{space 4}-.0323417{col 89}{space 3} .1357162
{txt}{space 4}Does Not Attend Weekly#Friday  {c |}{col 36}{res}{space 2} .0050505{col 48}{space 2} .1370191{col 59}{space 1}    0.04{col 68}{space 3}0.971{col 76}{space 4}-.2644787{col 89}{space 3} .2745797
{txt}{space 8}Attends Weekly#Not Friday  {c |}{col 36}{res}{space 2} .0591575{col 48}{space 2} .0444491{col 59}{space 1}    1.33{col 68}{space 3}0.184{col 76}{space 4} -.028278{col 89}{space 3}  .146593
{txt}{space 12}Attends Weekly#Friday  {c |}{col 36}{res}{space 2} .2939815{col 48}{space 2} .1311858{col 59}{space 1}    2.24{col 68}{space 3}0.026{col 76}{space 4} .0359269{col 89}{space 3}  .552036
{txt}{hline 35}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 6 0 100}Note: dy/dx for factor levels is the discrete change from the base level.{txt}{p_end}
{res}{txt}
{com}. estimates store ps_experience
{txt}
{com}. 
. esttab ps_experience  using mh_ps.tex,  se b(%9.2f) star(* 0.1 ** 0.05 *** 0.01)  replace label tex compress nomtitles noconstant noomitted
{res}{txt}(output written to {browse  `"mh_ps.tex"'})

{com}. 
. *** FIGURE 3
. coefplot  (ps_experience, label("Experience Treatment"))  , scheme(s1mono) title("Effects of Experience Treatment")  xline(0) xlabel(, grid)  grid(between glpattern(dash) glwidth(*2) glcolor(gray)) legend(off)   
{res}{txt}
{com}. 
. 
. *** FIGURE A10
.   estimates clear
{res}{txt}
{com}. reg PolSum_01 i.Experience1##c.Weekly##i.Friday Female Age  

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}       342
{txt}{hline 13}{c +}{hline 34}   F(9, 332)       = {res}     5.01
{txt}       Model {c |} {res} 3.26517679         9  .362797421   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res} 24.0279518       332  .072373349   {txt}R-squared       ={res}    0.1196
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.0958
{txt}       Total {c |} {res} 27.2931285       341    .0800385   {txt}Root MSE        =   {res} .26902

{txt}{hline 28}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}                  PolSum_01{col 29}{c |}      Coef.{col 41}   Std. Err.{col 53}      t{col 61}   P>|t|{col 69}     [95% Con{col 82}f. Interval]
{hline 28}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 14}1.Experience1 {c |}{col 29}{res}{space 2} .0467469{col 41}{space 2} .0427117{col 52}{space 1}    1.09{col 61}{space 3}0.275{col 69}{space 4}-.0372727{col 82}{space 3} .1307665
{txt}{space 21}Weekly {c |}{col 29}{res}{space 2}  .128496{col 41}{space 2} .0438301{col 52}{space 1}    2.93{col 61}{space 3}0.004{col 69}{space 4} .0422762{col 82}{space 3} .2147158
{txt}{space 27} {c |}
{space 7}Experience1#c.Weekly {c |}
{space 25}1  {c |}{col 29}{res}{space 2} .0037027{col 41}{space 2} .0616776{col 52}{space 1}    0.06{col 61}{space 3}0.952{col 69}{space 4}-.1176255{col 82}{space 3} .1250308
{txt}{space 27} {c |}
{space 21}Friday {c |}
{space 20}Friday  {c |}{col 29}{res}{space 2}-.1115028{col 41}{space 2} .0869951{col 52}{space 1}   -1.28{col 61}{space 3}0.201{col 69}{space 4}-.2826338{col 82}{space 3} .0596283
{txt}{space 27} {c |}
{space 9}Experience1#Friday {c |}
{space 18}1#Friday  {c |}{col 29}{res}{space 2}-.0892135{col 41}{space 2} .1444574{col 52}{space 1}   -0.62{col 61}{space 3}0.537{col 69}{space 4}-.3733808{col 82}{space 3} .1949537
{txt}{space 27} {c |}
{space 12}Friday#c.Weekly {c |}
{space 20}Friday  {c |}{col 29}{res}{space 2}-.0678359{col 41}{space 2} .1292598{col 52}{space 1}   -0.52{col 61}{space 3}0.600{col 69}{space 4}-.3221074{col 82}{space 3} .1864355
{txt}{space 27} {c |}
Experience1#Friday#c.Weekly {c |}
{space 18}1#Friday  {c |}{col 29}{res}{space 2} .3200379{col 41}{space 2} .1996956{col 52}{space 1}    1.60{col 61}{space 3}0.110{col 69}{space 4}-.0727902{col 82}{space 3}  .712866
{txt}{space 27} {c |}
{space 21}Female {c |}{col 29}{res}{space 2}-.0653291{col 41}{space 2} .0312946{col 52}{space 1}   -2.09{col 61}{space 3}0.038{col 69}{space 4}-.1268898{col 82}{space 3}-.0037683
{txt}{space 24}Age {c |}{col 29}{res}{space 2} 1.34e-06{col 41}{space 2} .0011851{col 52}{space 1}    0.00{col 61}{space 3}0.999{col 69}{space 4}-.0023298{col 82}{space 3} .0023325
{txt}{space 22}_cons {c |}{col 29}{res}{space 2} .2650178{col 41}{space 2} .0598984{col 52}{space 1}    4.42{col 61}{space 3}0.000{col 69}{space 4} .1471895{col 82}{space 3} .3828461
{txt}{hline 28}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. margins, dydx(Experience1) over(Weekly Friday) post
{res}
{txt}Average marginal effects{col 49}Number of obs{col 67}= {res}       342
{txt}{col 1}Model VCE{col 14}: {res}OLS

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Linear prediction, predict()}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col:dy/dx w.r.t.}:{space 1}{res:1.Experience1}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col:over}:{space 1}{res:Weekly Friday}{p_end}
{p2colreset}{...}

{res}{txt}{hline 35}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 36}{c |}{col 48} Delta-method
{col 36}{c |}      dy/dx{col 48}   Std. Err.{col 60}      t{col 68}   P>|t|{col 76}     [95% Con{col 89}f. Interval]
{hline 35}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}0.Experience1                     {col 36}{txt}{c |}  (base outcome)
{hline 35}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}1.Experience1                      {txt}{c |}
{space 21}Weekly#Friday {c |}
Does Not Attend Weekly#Not Friday  {c |}{col 36}{res}{space 2} .0467469{col 48}{space 2} .0427117{col 59}{space 1}    1.09{col 68}{space 3}0.275{col 76}{space 4}-.0372727{col 89}{space 3} .1307665
{txt}{space 4}Does Not Attend Weekly#Friday  {c |}{col 36}{res}{space 2}-.0424666{col 48}{space 2} .1384446{col 59}{space 1}   -0.31{col 68}{space 3}0.759{col 76}{space 4} -.314806{col 89}{space 3} .2298727
{txt}{space 8}Attends Weekly#Not Friday  {c |}{col 36}{res}{space 2} .0504496{col 48}{space 2} .0445633{col 59}{space 1}    1.13{col 68}{space 3}0.258{col 76}{space 4}-.0372124{col 89}{space 3} .1381116
{txt}{space 12}Attends Weekly#Friday  {c |}{col 36}{res}{space 2}  .281274{col 48}{space 2} .1309161{col 59}{space 1}    2.15{col 68}{space 3}0.032{col 76}{space 4} .0237443{col 89}{space 3} .5388036
{txt}{hline 35}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{p 0 6 0 100}Note: dy/dx for factor levels is the discrete change from the base level.{txt}{p_end}
{res}{txt}
{com}. estimates store ps_experience_2
{txt}
{com}. coefplot  (ps_experience_2, label("Experience Treatment"))  , scheme(s1mono) title("Effects of Experience Treatment")  xline(0) xlabel(, grid)  grid(between glpattern(dash) glwidth(*2) glcolor(gray)) legend(off)   
{res}{txt}
{com}. 
{txt}end of do-file

{com}. exit, clear
